package cn.dengta.webapp.trade.entity.meta;

import java.util.*;

import cn.dengta.context.model.Language;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class FraudRule implements MetaConfig.MetaRuleConfig {

	/** 多语言 提示数据 */
	Map<Language, String> languages = Collections.emptyMap();
	/** 词库数据 */
	String fraud;
	/** 词库 */
	transient List<String> thesaurus = Collections.emptyList();

	@Override
	public void validate() {

	}

	@Override
	public void init(MetaConfig.MetaRuleConfig config) {
		FraudRule fr = (FraudRule) config;
		this.languages = fr.getLanguages();
		this.fraud = fr.getFraud();
	}

}
